package com.sgb.jicai.entity;

import com.sgb.jicai.entity.JiCaiRequireEntity;

import java.util.List;

public class JiCaiJoinRequireEntity {

    private int payType;
    private String unitName;
    private String finalPaymentTime;
    private String depositRatio;
    private int payRatio;
    private String lowBuy;
    //("加盟规则自定义字段")
    private List<JiCaiRequireEntity> joinRequireCustomizeFields;

    public String getPayType() {
//        付款方式 (1 预付款  2货到付款)
        String pay = "";
        switch (payType) {
            case 1:
                pay = "预付款";
                break;
            case 2:
                pay = "货到付款";
                break;
            default:
                pay = "其它";
                break;
        }
        return pay;
    }

    public void setPayType(int payType) {
        this.payType = payType;
    }

    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    public String getFinalPaymentTime() {
       /* if (!TextUtils.isEmpty(finalPaymentTime)) {
            return TimeUtil.getDateTimeString(Long.valueOf(finalPaymentTime), "yyyy-MM-dd");
        } else {
            return "";
        }*/
        return finalPaymentTime;
    }

    public void setFinalPaymentTime(String finalPaymentTime) {
        this.finalPaymentTime = finalPaymentTime;
    }

    public String getDepositRatio() {
        return depositRatio;
    }

    public void setDepositRatio(String depositRatio) {
        this.depositRatio = depositRatio;
    }

    public String getPayRatio() {
        if (0 != payRatio) {
            return payRatio + "%";
        } else {
            return "0";
        }
    }

    public void setPayRatio(int payRatio) {
        this.payRatio = payRatio;
    }

    public String getLowBuy() {
        return lowBuy;
    }

    public void setLowBuy(String lowBuy) {
        this.lowBuy = lowBuy;
    }

    public List<JiCaiRequireEntity> getJoinRequireCustomizeFields() {
        return joinRequireCustomizeFields;
    }

    public void setJoinRequireCustomizeFields(List<JiCaiRequireEntity> joinRequireCustomizeFields) {
        this.joinRequireCustomizeFields = joinRequireCustomizeFields;
    }


}
